package tables

import "github.com/GoAdminGroup/go-admin/plugins/admin/modules/table"

// Generators is a map of table models.
//
// The key of generators is the prefix of table info url.
// The corresponding value is the Form and TableName data.
//
// http://{{config.Domain}}:{{Port}}/{{config.Prefix}}/info/{{key}}
//
// example:
//
// "users"   => http://localhost:9033/admin/info/users
// "posts"   => http://localhost:9033/admin/info/posts
// "authors" => http://localhost:9033/admin/info/authors
//
var Generators = map[string]table.Generator{
	"wechat_plugin":      GetWechatPlugin,
	"wechat_template":    GetWechatTemplate,
	"alipay_template":    GetAlipayTemplate,
	"bytedance_template": GetBytedanceTemplate,
	"wechat_mini_app":    GetWechatMiniApp,
	"alipay_mini_app":    GetAlipayMiniApp,
	"bytedance_mini_app": GetBytedanceMiniApp,
	"mini_app_version":   GetMiniAppVersion,
	"brand_mini_app":     GetBrandMiniApp,
	"schedule":           GetSchedule,
}
